package com.meituan.sdk.model.foodmop.order.diancannewOrderQueryOrderDownloadUrl;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 品牌查询美团日全量订单下载地址
* This file was automatically generated.
*/
@ApiMeta(
    path = "/foodmop/order/diancannew/order/queryOrderDownloadUrl",
    businessId = 51,
    apiVersion = "10011",
    apiName = "diancannew_order_query_order_download_url",
    needAuth = true
)
public class DiancannewOrderQueryOrderDownloadUrlRequest implements MeituanRequest<DiancannewOrderQueryOrderDownloadUrlResponse> {
    /**
    * <p data-diff-id="ct-diff-id-e488fe1c-c8c9-4db0-b510-53a1c7d11968"><font style="font-size:14px;line-height:22px" data-size="14">毫秒时间戳，UTF-8，这里的值是</font>想要查询日期当天的任何一个时间点，</p><p style="text-align: start;" data-diff-id="ct-diff-id-45ca819d-6caf-4cf1-906a-41527f60371b">推荐用当日0点的时间戳</p>
    */
    @NotNull(message = "date不能为空")
    @SerializedName("date")
    private Long date;
    /**
    * <p data-diff-id="ct-diff-id-fef65bee-eb9d-4099-935e-a7e94369aa98"><span style="color: ">业务类型 10-MOP</span></p>
    */
    @NotNull(message = "bizType不能为空")
    @SerializedName("bizType")
    private Integer bizType;
    /**
    * <p data-diff-id="ct-diff-id-811e72c6-b2b0-470e-b97c-5542fdb06964"><span style="color: ">扩展字段</span></p>
    */
    @SerializedName("queryExt")
    private Map queryExt;

    public Long getDate() {
        return date;
    }
    public void setDate(Long date) {
        this.date = date;
    }
    public Integer getBizType() {
        return bizType;
    }
    public void setBizType(Integer bizType) {
        this.bizType = bizType;
    }
    public Map getQueryExt() {
        return queryExt;
    }
    public void setQueryExt(Map queryExt) {
        this.queryExt = queryExt;
    }


    @Override
    public MeituanResponse<DiancannewOrderQueryOrderDownloadUrlResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<DiancannewOrderQueryOrderDownloadUrlResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "DiancannewOrderQueryOrderDownloadUrlRequest{" + "date=" + date + "," + "bizType=" + bizType + "," + "queryExt=" + queryExt + "}";
    }
}
